//
//  ToolClass.h
//  dyseller
//
//  Created by 红喇叭 on 2017/8/12.
//  Copyright © 2017年 红喇叭. All rights reserved.
//

#import <Foundation/Foundation.h>
#import<CommonCrypto/CommonDigest.h>
@interface ToolClass : NSObject

+ (CGSize)heighW:(UIFont *)font titleStr:(NSString *)title;

+ (BOOL)valiMobile:(NSString *)mobile;

/*
 *修改某个范围的字体颜色
 *range 修改范围
 */
+ (NSMutableAttributedString *)AttributedString:(NSString *)title range:(NSRange )range color:(UIColor *)titlecolor;

+ (UIViewController *)viewController:(UIView *)weakself;

+ (NSString *)gettoken:(NSDictionary *)dicts;


+ (NSString *)strToTime:(NSString *)strTime format:(NSString *)foemat;

+ (NSString *)getData;

//将图片保存到沙盒中
+ (BOOL)saveImage:(UIImage *)currenImage withName:(NSString *)name;

//读取沙盒路径图片
+(UIImage *)getDocumentImage:(NSString *)pathName;

//MD5加密
+ (NSString *) md5:(NSString *) input;
@end
